<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 常见的函数改写 async函数
    
    async function fn(){

    }

    (async function(){

    })()

    let fn = async function(){

    }

    let func = async () => {

    }

    var obj = {
        a:1,
        b:2,
        sum:async function(){

        },
        async sum(){

        }
    }

    document.onclick = async function(){

    }

    class Cat{
        constructor(name,color){
            this.name =name;
            this.color = color;
        }

        async say(){
            console.log(this.name,this.color);
        }
    }



</script>
</html>